/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2024-03-20     weihui       the first version
 */
#ifndef APPLICATIONS_BSP_BSP_SVPWM_H_
#define APPLICATIONS_BSP_BSP_SVPWM_H_

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#include <bsp/bsp.h>

#define Motor_enable_pin GET_PIN(B,2)
#define Motor_Enable()   rt_pin_write(Motor_enable_pin, 1)
#define Motor_Disable()  rt_pin_write(Motor_enable_pin, 0)

void svpwm_init(void);

#ifdef __cplusplus
}
#endif /* __cplusplus */


#endif /* APPLICATIONS_BSP_BSP_SVPWM_H_ */
